package bg.tu.varna.pms.model.communication;

import java.io.Serializable;

public final class RegisterMessage {
	public final static class Request implements Serializable {
		private static final long serialVersionUID = -2619875154021606713L;
		private String mUsername;
		private char[] mPassword;

		public String getUsername() {
			return mUsername;
		}

		public Request setUsername(String username) {
			this.mUsername = username;
			return this;
		}

		// TODO decryption
		public char[] getPassword() {
			return mPassword;
		}

		// TODO encryption
		public Request setPassword(char[] password) {
			this.mPassword = password;
			return this;
		}
	}

	public final static class Response implements Serializable {
		private static final long serialVersionUID = -2594810508430750787L;
		private boolean mSuccess;
		
		public boolean isSuccess() {
			return mSuccess;
		}
		public void setSuccess(boolean success) {
			mSuccess = success;
		}
	}
}
